package cur.nature.framework.core.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LOG {
    private static Logger log = LoggerFactory.getLogger(LOG.class);
//    public static void  fatal(Object o) {
//        log.fatal(o);
//    }

//    public static void  fatal(Object o, Throwable throwable) {
//        log.fatal(o,throwable);
//    }


    public static void error(String msg, final Object... args) {
        log.error(msg, args);
    }

    public static void error(String msg) {
        log.error(msg);
    }


    public static void error(String msg, Throwable throwable) {
        log.error(msg, throwable);
    }

    public static void warn(String msg, final Object... args) {
        log.warn(msg, args);
    }

    public static void warn(String msg) {
        log.warn(msg);
    }


    public static void warn(String msg, Throwable throwable) {
        log.warn(msg, throwable);
    }

    public static void info(String msg, final Object... args) {
        log.info(msg, args);
    }


    public static void info(String msg) {
        log.info(msg);
    }

    public static void info(String msg, boolean isPrint) {
        if (isPrint) {
            log.info(msg);
        }
    }


    public static void info(String msg, Throwable throwable) {
        log.info(msg, throwable);
    }


    public static void debug(String msg, final Object... args) {
        log.debug(msg, args);
    }

    public static void debug(String msg) {
        log.debug(msg);
    }


    public static void debug(String msg, Throwable throwable) {
        log.debug(msg, throwable);
    }


    public static void trace(String msg, final Object... args) {
        log.trace(msg, args);
    }

    public static void trace(String msg) {
        log.trace(msg);
    }

    public static void trace(String msg, Throwable throwable) {
        log.trace(msg, throwable);
    }
}
